<html>

<head>

<title>Upload Example</title>

</head>

<body>
 
<form id="loginForm"  enctype="text/plain" method="post" action="/login" onsubmit="">

    Login 
    <input type="text" id="username" name="username" value="najib"/> <br />
    Password
    <input type="password" id="password" name="password" value="najib"/> <br />
    <input type="submit" id="submit" name="submit" value="submit" />

</form>
    <br />
    <p>CONNEXION :</p>
    <div id="statusUser">WAITING</div> 
    
    <br />
<form id="uploadForm" enctype="multipart/form-data" action="/api/photos" method="post">

    <input type="file" id="userPhotoInput" name="userPhoto" />

    <button type="submit" id="submitPhoto" name="submitPhoto">Submit</button>

</form>

 

<span id="status" />

<img id="uploadedImage" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>

<script src="http://malsup.github.com/jquery.form.js"></script>


    
<script src="/javascripts/upload.js"></script>
        
<script src="/javascripts/login.js"></script> 

</body>

</html>
